import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqAttributeUpdateHelper } from "../Public/SeqAttributeUpdateHelper";
type int = number;
//class SChatMsgMoniter
    
    export  class SChatMsgMoniter extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SChatMsgMoniter();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.playerId);
            arg1.writeInt(this.serverId);
            arg1.writeString(this.playerName);
            arg1.writeString(this.content);
            arg1.writeInt(this.chatType);
            arg1.writeInt(this.recharge);
            arg1.writeInt(this.level);
            SeqAttributeUpdateHelper.write(arg1, this.attrUpdates);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.playerId = arg1.readInt();
            this.serverId = arg1.readInt();
            this.playerName = arg1.readString();
            this.content = arg1.readString();
            this.chatType = arg1.readInt();
            this.recharge = arg1.readInt();
            this.level = arg1.readInt();
            this.attrUpdates = SeqAttributeUpdateHelper.read(arg1);
            return;
        }

        public /* const */_type: int=12039;

        public /* var */playerId: int;

        public /* var */serverId: int;

        public /* var */playerName: string;

        public /* var */content: string;

        public /* var */chatType: int;

        public /* var */recharge: int;

        public /* var */level: int;

        public /* var */attrUpdates: Array<any>;

        public static /* var */_regist: SChatMsgMoniter;
    }

            SChatMsgMoniter._regist = new SChatMsgMoniter(true);
        